<template>
<div>
  <p>引入富文本</p>
  <el-button>添加</el-button>
  <Tinymce v-model="content"></Tinymce>

  <el-button @click="showDialog">打开</el-button>
  <testModel v-if="testModelVisible"></testModel>
</div>
</template>

<script>
import  Tinymce from './index'
import testModel from './TestModel'
export default {
  name: "editor",
  components:{Tinymce,testModel},
  data(){
    return{
      testModelVisible:false,
      content:'测试文本',
      testData:'测试数据测试数据'
    }
  },
  methods:{
    showDialog(){
       this.testModelVisible = true ;
    }
  }
}
</script>

<style scoped>

</style>